/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jsrpc.bridge;

import java.util.ArrayList;
import java.util.List;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import org.workforce.util.Utils;

/**
 *
 * @author neo
 */
public class BrokerTagHandler extends TagSupport {
    private static final long serialVersionUID = 2467391970570720952L;

    @Override
    public int doStartTag() throws JspException {
        List<Broker> list = new ArrayList<Broker>();
        String generateId = Utils.generateId();
        pageContext.setAttribute(Key.PAGE_ID, generateId);
        System.out.println("pageId["+ generateId +"]");
        pageContext.getSession().setAttribute(Key.REMOTE_REGISTER+"."+generateId, list);
        return EVAL_BODY_INCLUDE;
    }

    @Override
    public int doEndTag() throws JspException {
        return super.doEndTag();
    }
}
